
import request from '@/utils/requestApi'
// 提示词配置相关API
export const promptApi = {
  // 获取所有提示词配置
  getAllPrompts: () => request.get('/get_all_prompts'),

  // 更新提示词配置
  updatePrompt: (promptType: string, content: string) =>
    request.post('/update_prompt', { prompt_type: promptType, content }),

  // 获取默认提示词配置
  getDefaultPrompts: () => request.get('/get_default_prompts'),

  // 重置指定提示词为默认值
  resetPrompt: (promptType: string) =>
    request.post('/reset_prompt', { prompt_type: promptType, content: "" }),

  // 重置所有提示词为默认值
  resetAllPrompts: () => request.post('/reset_all_prompts'),

  // 从备份文件恢复默认提示词
  restoreDefaultPrompts: () => request.post('/restore_default_prompts')
};
